package com.job.ZhangMeng.Homework0709.exNply;

public class Legend {
    public String call; //英雄称号
    public String name; //英雄名
    public String job;  //定位(职业)
    public String position; //位置(分路)

    public Legend(){}
    public Legend(String call,String name,String job,String position)
    {
        this.call=call;
        this.name=name;
        this.job=job;
        this.position=position;
    }

    public void setInfo(String call,String name,String job,String position)
    {
        this.call=call;
        this.name=name;
        this.job=job;
        this.position=position;
    }
    public void getInfo()   //显示父类对象信息
    {
        System.out.println("称号："+this.call+"\t英雄名："+this.name+
                    "\t定位(职业)："+this.job+"\t位置(分路)："+this.position);
    }
    public double attack(){return 0.0;}
}
